<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class Userinfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('userinfo', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('userinfoid')->nullable(false)->comment('');
			$table->integer('userid')->nullable(false)->default(0)->comment('');
			$table->string('nickname', 40)->nullable()->default(null)->comment('');
			$table->string('useremail', 80)->nullable()->default(null)->comment('');
			$table->string('userphone', 60)->nullable()->default(null)->comment('');
			$table->string('userSector', 200)->nullable()->default(null)->comment('');
			$table->string('viewAreaid', 200)->nullable()->default(null)->comment('');
			$table->string('rwriteAreaId', 200)->nullable()->default(null)->comment('');
			$table->string('managerAreaid', 200)->nullable()->default(null)->comment('');
			$table->integer('Co_ID')->nullable()->default(0)->comment('');
			$table->string('ui_PerInfo', 1024)->nullable()->default('个人简历')->comment('');
			$table->string('Location', 200)->nullable()->default('中国')->comment('');
			$table->string('ui_Address', 200)->nullable()->default('广东省广州市')->comment('');
			$table->string('ui_Portrait', 100)->nullable()->default('default.jpg')->comment('');
			$table->string('ui_Lang', 50)->nullable()->default('zh-cn')->comment('');
			$table->string('ui_Sidebar', 50)->nullable()->default('')->comment('');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('userinfo');
    }
}
